{% extends "base.volt" %}

{% block pageFooter%}
    {{ javascript_include("/assets/manage/js/om/questionUser.js", false) }}
{% endblock %}

{% block content %}
    {{ partial("module/left_om") }}
    <div class="col-xs-10">
        <ol class="breadcrumb">
            <li>运营</li>
            <li>回答问题管理</li>
            <li class="active">账号关联</li>
        </ol>

        <table class="table table-hover">
            <thead>
            <tr>
                <th style="width: 60px;">ID</th>
                <th>操作员</th>
                <th>用户</th>
                <th style="width: 200px;"></th>
            </tr>
            </thead>
            {% for d in data %}
                <tr>
                    <td>{{ d.qau_id }}</td>
                    <td>{{ d.operator_show_name|e }}</td>
                    <td>user id: {{ d.user_id|e }}<br />账号: {{ d.user_account }}<br />昵称: {{ d.user_nickname }}</td>
                    <td>
                        <div class="dropdown">
                            <button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu{{ d.qau_id }}" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true"><i class="fa fa-cogs"></i> 操作 <span class="caret"></span>
                            </button>
                            <ul class="dropdown-menu" aria-labelledby="dropdownMenu{{ d.qau_id }}">
                                <li><a href="javascript:void(0)" did="{{ d.qau_id }}" dstate="-1" class="but_set_state" durl="{{ url.get('om/questionUserSetState') }}"><i class="fa fa-trash-o fa-fw"></i> 删 除</a></li>
                            </ul>
                        </div>
                    </td>
                </tr>
            {% endfor %}
        </table>

        <div class="row">
            <div class="col-xs-12 text-center">
                <button durl="{{ url.get('om/questionUserAdd') }}" class="btn btn-primary but_add_city"><i class="fa fa-plus fa-lg"></i> 增加新的关联</button>
            </div>
        </div>

    </div>
{% endblock %}